package com.cavy.platform.server.domain;

public interface ConfigMapFactory {

    AbstractConfigMap create();

    public static class FileConfigMapFactory implements ConfigMapFactory {

        @Override
        public AbstractConfigMap create() {
            return new FileConfigMap();
        }
    }

    public static class StringConfigMapFactory implements ConfigMapFactory {

        @Override
        public AbstractConfigMap create() {
            return new StringConfigMap();
        }
    }
}
